<?php
defined( 'ABSPATH' ) || exit;

//is_category()只能用在分类页面，single页面要用in_category
if(in_category('news')){
	get_template_part('single-news' );
}elseif(in_category('coupon')){
	get_template_part('single-coupon');
}else{
	get_template_part('single-default');
}
setPostViews(get_the_ID());
?>
